<p><b><?php echo $replies[0]['User']['firstname'] . ' ' . $replies[0]['User']['lastname']; ?></b> à <?php echo $time->nice($replies[0]['Reply']['date']) ?> a dit: <br/>
	<?php echo nl2br($replies[0]['Reply']['response']); ?>
</p>
<p>Changelog: <?php echo $replies[0]['Reply']['changelog']; ?></p>
<a href="<?php echo $full_base_url . $base . '/'. $project_name . '/' . $project_id . '/tickets/view/' . $ticket['Ticket']['id'];  ?>">Voir le ticket</a>
<blockquote  style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
	<table width="100%" border="0" cellspacing="0" cellpadding="2">
	<?php 
	$first = true;
	foreach ($replies as $reply) {
		if ($first) {
			echo $html->tableHeaders(array(__('author', true), 'Date', __('summary', true), __('changes', true)), 'class="details"');
			$first = false;
			continue;
		}
		echo $html->tableCells(array($reply['User']['firstname'] . ' ' .$reply['User']['lastname'],
									$time->nice($reply['Reply']['date']),
									nl2br($reply['Reply']['response']),
									$reply['Reply']['changelog']),
								 'class="odd"', 'class="even"');
	}
	?>
	</table>
<p>La demande a été qualifié.</p>
<p>Elle sera traité par : <?php
	$first = true;
	foreach ($affect_user as $user) {
		if (!$first) {
			$first = false;
			echo ', ';
		}
		echo $user['User']['firstname'] . ' ' . $user['User']['lastname'];
	} ?>
</p>
<a href="<?php echo $full_base_url . $base . '/'. $project_name . '/' . $project_id . '/tickets/view/' . $ticket['Ticket']['id'];  ?>">Voir le ticket</a>
<div id="info_Ticket" class="largebloc2">
	<h2><?php echo "Demande : ". $ticket['Ticket']['name']; ?></h2>
	<p>
<?php echo 'Le '.$time->nice($ticket['Ticket']['creation_date']); ?><?php echo __('initiated_by').$user['User']['firstname'] . ' ' . $user['User']['lastname']; ?><br />
    </p>
	<p>Type : <?php echo $ticket['Ticket']['kind']; ?></p>
	<p><?php echo nl2br($ticket['Ticket']['description']); ?></p>
	<p>Date de mise en production souhaitée : <?php echo $time->nice($ticket['Ticket']['ideal_deliver_date']); ?></p>
</div>
<a href="<?php echo $full_base_url . $base . '/'. $project_name . '/' . $project_id . '/tickets/view/' . $ticket['Ticket']['id'];  ?>">Voir le ticket</a>
</blockquote>